package com.dwxt.cdms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Table(name = "t_equipment_custom")
public class EquipmentCustom {

    @Id
    private String id;

    /**
     * 设备id
     */
    @Column(name = "equipment_id")
    private String equipmentId;

    /**
     * 客户id
     */
    @Column(name = "customer_id")
    private Integer customerId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    /**
     * 删除标识(0否1是);测试阶段用逻辑删除方便
     */
    @Column(name = "is_delete")
    private String isDelete;

    /**
     * 备用字段1
     */
    @Column(name = "witheart_userid")
    private String witheartUserid;

    /**
     * 备用字段2
     */
    @Column(name = "spare_field_2")
    private String spareField2;

    /**
     * 备用字段3
     */
    @Column(name = "spare_field_3")
    private String spareField3;

    /**
     * 备用字段4
     */
    @Column(name = "spare_field_4")
    private String spareField4;

    /**
     * 备用字段5
     */
    @Column(name = "spare_field_5")
    private String spareField5;

    //睡眠仪参数
    @Transient
    private String mobile;
    @Transient
    private String nick;
    @Transient
    private String birthday;
    @Transient
    private String perplex;
    @Transient
    private String medicine;

    //胸卡参数
    @Transient
    private String xkParams;

}